
/*  */
import {
    socketUrl
} from "@/utils/request/baseConfig";
/*  */
import {
    requestUrl,
    request
} from "./index";

const apiModule = 'walletInfo/';
const apiModule2 = 'moneyGive/';
const apiModule3 = 'moneyRecord/';
const apiModule4 = 'scanPay/getPayQR/';

// 获取钱包详情
export const _getWallet = (data) => {
    return request(apiModule + 'getWallet', data);
}
// 获取充值选项列表
export const _moneyGiveList = (data) => {
    return request(`${apiModule2}moneyGiveList`);
};
// 钱包充值
export const _fillMoney = (data) => {
    return request(apiModule + 'fillMoney', data);
}
// 买家端余额变动记录
export const _customerMoneyRecord = (data) => {
    return request(`${apiModule3}customerMoneyRecord`, data);
}
// 充值记录 manageFillRecord
export const _manageFillRecord = (data) => {
    return request(`${apiModule3}manageFillRecord`, data);
}
//获取支付二维码图片
export const _getQR = (customerId) => {
    return `${requestUrl}${apiModule4}`;
};
//websocket连接地址
export const _socketUrl = `${socketUrl}wallet-server/websocket/scanPay/`;
//export const _socketUrl = `wss://bdance.csgxcf.com/vimi/wallet-server/websocket/scanPay/`;